package model

import "time"

type ServerManagerCommands struct {
	Id          int       `db:"id"`
	Title       string    `db:"title"`
	Command     string    `db:"command"`
	Describe    string    `db:"describe"`
	CreatedTime time.Time `db:"created_time"`
	LastModTime time.Time `db:"last_mod_time"`
}

func (s *ServerManagerCommands) TableName() string {
	return "servermanager_commands"
}

type ServerManagerEmailsendlog struct {
	Id          int       `db:"id"`
	Emailto     string    `db:"emailto"`
	Title       string    `db:"title"`
	Content     string    `db:"content"`
	SendResult  bool      `db:"send_result"`
	CreatedTime time.Time `db:"created_time"`
}

func (s *ServerManagerEmailsendlog) TableName() string {
	return "servermanager_emailsendlog"
}
